package com.linkallcloud.web.session;

import java.util.Date;

import com.linkallcloud.core.dto.Sid;
import com.linkallcloud.core.www.ISessionCUser;

public class SessionCUser extends SimpleUser implements ISessionCUser {
    private static final long serialVersionUID = 3061193322655196512L;

    private Sid sid;

    private String sex;
    private Date birthday;
    private String ico;// 头像
    private String phone;
    private String nickName;
    private String remark;// 备注

    public SessionCUser() {
        super();
    }

    @Override
    public Sid getSid() {
        return sid;
    }
    
    @Override
    public Long id() {
        return sid == null ? null : sid.getId();
    }
    
    @Override
    public String uuid() {
        return sid == null ? null : sid.getUuid();
    }

    @Override
    public String name() {
        return sid == null ? null : sid.getName();
    }

    @Override
    public void setSid(Sid sid) {
        this.sid = sid;
    }

    @Override
    public String getNickName() {
        return nickName;
    }

    @Override
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String getPhone() {
        return phone;
    }

    @Override
    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String getSex() {
        return sex;
    }

    @Override
    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public Date getBirthday() {
        return birthday;
    }

    @Override
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String getIco() {
        return ico;
    }

    @Override
    public void setIco(String ico) {
        this.ico = ico;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

}
